package com.typy.www.tpay.volley;

import android.content.Context;

import com.android.volley.Cache;
import com.android.volley.Network;
import com.android.volley.RequestQueue;
import com.android.volley.ResponseDelivery;
import com.android.volley.toolbox.Volley;

/**
 * Created by 13799 on 2018/6/18.
 */

public class RequestQueueUtil {
    public static RequestQueueUtil instance;
    private Context mContext;

    public static RequestQueueUtil getInstancs() {
        return instance;
    }
    public static void init(Context context) {
        if (instance == null) {
            instance = new RequestQueueUtil(context);
        }
    }
    public RequestQueueUtil(Context context) {
        mContext=context;
    }
    public RequestQueue getRequestQueue(){
        return Volley.newRequestQueue(mContext);
    }

}
